<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="/css/font.css">
        <link rel="stylesheet" href="/css/xadmin.css">
    </head>
    <body>
    <div class="x-body layui-anim layui-anim-up" >
		<div class="layui-container">
			<div class="layui-row">
				<div class="layui-col-md6 layui-col-md-offset5" style="font-size: 1.5em;margin-bottom: 10px;">
				  当前身份：<span th:text="(${sysUser.type} == 0) ? '超级管理员' : '管理员'"></span>
				</div>
			</div>
			<div class="layui-row">
				<div class="layui-col-md6 layui-col-md-offset3">
					<div class="layui-form">
					  <div class="layui-form-item">
						<label class="layui-form-label"><font color="red" size="3">*</font>用户姓名</label>
						<div class="layui-input-block">
						  <input type="text" name="username" disabled class="layui-input" th:attr="value=${sysUser.username}">
						  <input type="hidden" name="id" th:attr="value=${sysUser.id}"/>
						</div>
					  </div>
					  <div class="layui-form-item">
						<label class="layui-form-label"><font color="red" size="3">*</font>登录账号</label>
						<div class="layui-input-block" >
						  <input type="text" name="account" disabled class="layui-input" th:attr="value=${sysUser.account}">
						</div>
					  </div>
					  <div class="layui-form-item">
						<label class="layui-form-label"><font color="red" size="3">*</font>登录密码</label>
						<div class="layui-input-inline">
						  <input type="password" name="password" disabled class="layui-input" th:attr="value=${sysUser.password}">
						</div>
						<button class="layui-btn layui-btn-danger" onclick="open_updatePas()">修改密码</button>
					  </div>
					  <div class="layui-form-item">
						<label class="layui-form-label">邮箱</label>
						<div class="layui-input-block">
						  <input type="text" name="email" disabled class="layui-input" th:attr="value=${sysUser.email}">
						</div>
					  </div>
					  <div class="layui-form-item">
						<label class="layui-form-label">手机</label>
						<div class="layui-input-block">
						  <input type="tel" name="phone" disabled class="layui-input" th:attr="value=${sysUser.phone}">
						</div>
					  </div>
					</div>
				</div>
			</div>
		</div>
    </div>
	<script type="text/javascript" src="/js/jquery.min.js"></script>
	<script src="/lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="/js/xadmin.js"></script>
	<script>
		function open_updatePas() {
			layer.open({
				type: 2, // 2:url请求
				title: '修改密码',
				skin: 'layui-layer-rim', // 加上边框
				area: ['420px', '240px'], // 宽高
				content: ["/sys/info/toUpdatePas","no"] // 禁用滚动条
			});
		}
	</script>
    </body>
</html>